// 机构管理

import request from '@/utils/request'

// 获取机构详情
export function getOrgMessageApi(id) {
  return request({
    url: `/business-hall/${id}`,
    method: 'get'
  })
}

// 获取员工列表
export function getRoleListApi(page, pageSize) {
  return request({
    url: '/business-hall/user/page',
    method: 'get',
    params: {
      page,
      pageSize
    }
  })
}

// 编辑机构
export function editOrgApi() {
  return request({
    url: `/business-hall`,
    method: 'POST'
  })
}
